﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Threading;
using System.Globalization;

namespace invest
{
    public class BasicPage : Page
    {
        private const String m_DefaultCulture = "en-nz";

        protected override void InitializeCulture()
        {
            String culture = Convert.ToString(Session[Global.SESSION_KEY_CULTURE]);

            if (culture.Length > 0)
                Culture = culture;

            Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(culture);
            Thread.CurrentThread.CurrentUICulture = new CultureInfo(culture);
            base.InitializeCulture();
        }
    }
}